var _ = require('ramda');
// function every(array: any, test: any): boolean
// 
function every(array, test) {
   return _.reject( test,array).length===0
}

console.log(every([1, 3, 5], n => n < 10));
// → true
console.log(every([2, 4, 16], n => n < 10));
// → false
console.log(every([], n => n < 10));
// → true